package com.yuanqi.java.dto;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 采购统计VO
 * </p>
 *
 * @author author
 * @since 2025-09-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class PurchaseStatisticsVO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 商品ID
     */
    private Long productId;

    /**
     * 商品名称
     */
    private String productName;

    /**
     * 规格型号
     */
    private String specification;

    /**
     * 供应商名称
     */
    private String supplierName;

    /**
     * 单位
     */
    private String unit;

    /**
     * 总数量
     */
    private Integer totalQuantity;

    /**
     * 平均单价
     */
    private BigDecimal averagePrice;

    /**
     * 总金额
     */
    private BigDecimal totalAmount;

    /**
     * 采购次数
     */
    private Integer purchaseCount;

    /**
     * 最后采购日期
     */
    private LocalDateTime lastPurchaseDate;
} 